package org.lee.web.controller.auth;

import org.lee.common.core.vo.response.AjaxResult;
import org.lee.web.service.CaptchaService;
import org.noear.solon.annotation.Controller;
import org.noear.solon.annotation.Get;
import org.noear.solon.annotation.Inject;
import org.noear.solon.annotation.Mapping;

/**
 * 验证码操作处理
 *
 * @author ltb
 */
@Controller
public class CaptchaController {

    @Inject
    CaptchaService captchaService;
    
    /**
     * 生成验证码
     */
    @Get
    @Mapping("/captchaImage")
    public AjaxResult getCode() {
        return captchaService.getCode();
    }
}
